$OpenBSD: patch-uucpd_c,v 1.1 2015/01/18 15:47:52 naddy Exp $
--- uucpd.c.orig	Wed Mar 12 15:35:25 2014
+++ uucpd.c	Sun Jan 18 16:44:38 2015
@@ -43,6 +43,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <limits.h>
 #include <netdb.h>
 #include <signal.h>
 #include <fcntl.h>
@@ -170,7 +171,7 @@ doit(struct sockaddr *sa)
 			return;
 		}
 	} while (user[0] == '\0');
-	user[MAXLOGNAME] = '\0';
+	user[LOGIN_NAME_MAX] = '\0';
 
 	pw = getpwnam(user);
 	if (pw == NULL) {
